"""

"""
from selenium.webdriver import ActionChains
from selenium.webdriver.common.by import By
from basic.s15_dcd_page_base import BasePage


class IndexPage(BasePage):
    _head_img = (By.CSS_SELECTOR, 'img[alt^="用户"]')
    _login_out = (By.CSS_SELECTOR, '.new-user_ic-logout__RFG3_')

    def log_out(self):
        a_c = ActionChains(self.driver)
        ele_head_img = self.find_ele_visibility(self._head_img)
        a_c.move_to_element(ele_head_img).perform()
        self.click_visibility_by_locator(self._login_out)
